import Layout from '@/layout/businessLayout'

const businessRouter = [
  {
    path: '',
    component: Layout,
    redirect: 'userManagement',
    hidden: true,
    children: [
      // 用户管理
      {
        hidden: true,
        path: 'userManagement',
        component: () => import('@/views/business/userManagement'),
        name: '农户管理',
        meta: {title: '农户管理', icon: 'dashboard', affix: true}
      },
      // 数据管理
      {
        hidden: true,
        path: 'dataAdministration',
        component: () => import('@/views/business/dataAdministration'),
        name: '数据管理',
        meta: {title: '数据管理', icon: 'dashboard', affix: true}
      },
      // 承保档案
      {
        hidden: true,
        path: 'underwritingFile',
        component: () => import('@/views/business/underwritingFile'),
        name: '承保档案',
        meta: {title: '承保档案', icon: 'dashboard', affix: true}
      },
      // 受灾档案
      {
        hidden: true,
        path: 'disasterFile',
        component: () => import('@/views/business/disasterFile'),
        name: '受灾档案',
        meta: {title: '受灾档案', icon: 'dashboard', affix: true}
      },

      // 承保一张图
      {
        hidden: true,
        path: 'underwriteMap',
        component: () => import('@/views/business/underwriteMap'),
        name: '承保一张图',
        meta: {title: '承保一张图', icon: 'dashboard', affix: true}
      },
      // 受灾一张图
      {
        hidden: true,
        path: 'aMapOfTheDisaster',
        component: () => import('@/views/business/aMapOfTheDisaster'),
        name: '受灾一张图',
        meta: {title: '受灾一张图', icon: 'dashboard', affix: true}
      },
    ]
  },
]

export {businessRouter}
